<?php
$tdatacontacts=array();
	$tdatacontacts[".NumberOfChars"]=80; 
	$tdatacontacts[".ShortName"]="contacts";
	$tdatacontacts[".OwnerID"]="";
	$tdatacontacts[".OriginalTable"]="contacts";


	
//	field labels
$fieldLabelscontacts = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelscontacts["English"]=array();
	$fieldToolTipscontacts["English"]=array();
	$fieldLabelscontacts["English"]["id"] = "Id";
	$fieldToolTipscontacts["English"]["id"] = "";
	$fieldLabelscontacts["English"]["company_id"] = "Company";
	$fieldToolTipscontacts["English"]["company_id"] = "";
	$fieldLabelscontacts["English"]["address"] = "Address";
	$fieldToolTipscontacts["English"]["address"] = "";
	$fieldLabelscontacts["English"]["city_id"] = "City ";
	$fieldToolTipscontacts["English"]["city_id"] = "";
	$fieldLabelscontacts["English"]["port_id"] = "Port ";
	$fieldToolTipscontacts["English"]["port_id"] = "";
	$fieldLabelscontacts["English"]["phone1"] = "Phone 1";
	$fieldToolTipscontacts["English"]["phone1"] = "";
	$fieldLabelscontacts["English"]["phone2"] = "Phone 2";
	$fieldToolTipscontacts["English"]["phone2"] = "";
	$fieldLabelscontacts["English"]["fax1"] = "Fax 1";
	$fieldToolTipscontacts["English"]["fax1"] = "";
	$fieldLabelscontacts["English"]["fax2"] = "Fax 2";
	$fieldToolTipscontacts["English"]["fax2"] = "";
	$fieldLabelscontacts["English"]["email"] = "Email";
	$fieldToolTipscontacts["English"]["email"] = "";
	$fieldLabelscontacts["English"]["website"] = "Website";
	$fieldToolTipscontacts["English"]["website"] = "";
	$fieldLabelscontacts["English"]["primary"] = "Primary";
	$fieldToolTipscontacts["English"]["primary"] = "";
	$fieldLabelscontacts["English"]["company_name"] = "Company Name";
	$fieldToolTipscontacts["English"]["company_name"] = "";
	$fieldLabelscontacts["English"]["pin_code"] = "Pin Code";
	$fieldToolTipscontacts["English"]["pin_code"] = "";
	if (count($fieldToolTipscontacts["English"])){
		$tdatacontacts[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["company_id"] = "Company Id";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["company_id"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["address"] = "Address";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["address"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["city_id"] = "City Id";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["city_id"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["port_id"] = "Port Id";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["port_id"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["phone1"] = "Phone1";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["phone1"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["phone2"] = "Phone2";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["phone2"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["fax1"] = "Fax1";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["fax1"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["fax2"] = "Fax2";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["fax2"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["email"] = "Email";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["email"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["website"] = "Website";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["website"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["primary"] = "Primary";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["primary"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["company_name"] = "Company Name";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["company_name"] = "";
	$fieldLabelscontacts["Chinese (Hong Kong S.A.R.)"]["pin_code"] = "Pin Code";
	$fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"]["pin_code"] = "";
	if (count($fieldToolTipscontacts["Chinese (Hong Kong S.A.R.)"])){
		$tdatacontacts[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelscontacts["Chinese (Taiwan)"]=array();
	$fieldToolTipscontacts["Chinese (Taiwan)"]=array();
	$fieldLabelscontacts["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["company_id"] = "Company Id";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["company_id"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["address"] = "Address";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["address"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["city_id"] = "City Id";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["city_id"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["port_id"] = "Port Id";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["port_id"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["phone1"] = "Phone1";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["phone1"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["phone2"] = "Phone2";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["phone2"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["fax1"] = "Fax1";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["fax1"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["fax2"] = "Fax2";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["fax2"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["email"] = "Email";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["email"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["website"] = "Website";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["website"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["primary"] = "Primary";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["primary"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["company_name"] = "Company Name";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["company_name"] = "";
	$fieldLabelscontacts["Chinese (Taiwan)"]["pin_code"] = "Pin Code";
	$fieldToolTipscontacts["Chinese (Taiwan)"]["pin_code"] = "";
	if (count($fieldToolTipscontacts["Chinese (Taiwan)"])){
		$tdatacontacts[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelscontacts["French"]=array();
	$fieldToolTipscontacts["French"]=array();
	$fieldLabelscontacts["French"]["id"] = "Id";
	$fieldToolTipscontacts["French"]["id"] = "";
	$fieldLabelscontacts["French"]["company_id"] = "Company Id";
	$fieldToolTipscontacts["French"]["company_id"] = "";
	$fieldLabelscontacts["French"]["address"] = "Address";
	$fieldToolTipscontacts["French"]["address"] = "";
	$fieldLabelscontacts["French"]["city_id"] = "City Id";
	$fieldToolTipscontacts["French"]["city_id"] = "";
	$fieldLabelscontacts["French"]["port_id"] = "Port Id";
	$fieldToolTipscontacts["French"]["port_id"] = "";
	$fieldLabelscontacts["French"]["phone1"] = "Phone1";
	$fieldToolTipscontacts["French"]["phone1"] = "";
	$fieldLabelscontacts["French"]["phone2"] = "Phone2";
	$fieldToolTipscontacts["French"]["phone2"] = "";
	$fieldLabelscontacts["French"]["fax1"] = "Fax1";
	$fieldToolTipscontacts["French"]["fax1"] = "";
	$fieldLabelscontacts["French"]["fax2"] = "Fax2";
	$fieldToolTipscontacts["French"]["fax2"] = "";
	$fieldLabelscontacts["French"]["email"] = "Email";
	$fieldToolTipscontacts["French"]["email"] = "";
	$fieldLabelscontacts["French"]["website"] = "Website";
	$fieldToolTipscontacts["French"]["website"] = "";
	$fieldLabelscontacts["French"]["primary"] = "Primary";
	$fieldToolTipscontacts["French"]["primary"] = "";
	$fieldLabelscontacts["French"]["company_name"] = "Company Name";
	$fieldToolTipscontacts["French"]["company_name"] = "";
	$fieldLabelscontacts["French"]["pin_code"] = "Pin Code";
	$fieldToolTipscontacts["French"]["pin_code"] = "";
	if (count($fieldToolTipscontacts["French"])){
		$tdatacontacts[".isUseToolTips"]=true;
	}
}


	
	$tdatacontacts[".NCSearch"]=true;

	

$tdatacontacts[".shortTableName"] = "contacts";
$tdatacontacts[".nSecOptions"] = 0;
$tdatacontacts[".recsPerRowList"] = 1;	
$tdatacontacts[".tableGroupBy"] = "0";
$tdatacontacts[".mainTableOwnerID"] = "";
$tdatacontacts[".moveNext"] = 1;




$tdatacontacts[".showAddInPopup"] = false;

$tdatacontacts[".showEditInPopup"] = false;

$tdatacontacts[".showViewInPopup"] = false;


$tdatacontacts[".fieldsForRegister"] = array();

$tdatacontacts[".listAjax"] = false;

	$tdatacontacts[".audit"] = false;

	$tdatacontacts[".locking"] = false;
	
$tdatacontacts[".listIcons"] = true;
$tdatacontacts[".edit"] = true;
$tdatacontacts[".inlineEdit"] = true;
$tdatacontacts[".view"] = true;

$tdatacontacts[".exportTo"] = true;

$tdatacontacts[".printFriendly"] = true;

$tdatacontacts[".delete"] = true;

$tdatacontacts[".showSimpleSearchOptions"] = false;

$tdatacontacts[".showSearchPanel"] = true;


$tdatacontacts[".isUseAjaxSuggest"] = true;

$tdatacontacts[".rowHighlite"] = true;


// button handlers file names

$tdatacontacts[".addPageEvents"] = false;

$tdatacontacts[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatacontacts[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatacontacts[".isUseTimeForSearch"] = false;

$tdatacontacts[".isUseiBox"] = false;



$tdatacontacts[".isUseInlineAdd"] = true;

$tdatacontacts[".isUseInlineEdit"] = true;
$tdatacontacts[".isUseInlineJs"] = $tdatacontacts[".isUseInlineAdd"] || $tdatacontacts[".isUseInlineEdit"];

$tdatacontacts[".allSearchFields"] = array();

$tdatacontacts[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "id";	
}
$tdatacontacts[".globSearchFields"][] = "company_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("company_id", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "company_id";	
}
$tdatacontacts[".globSearchFields"][] = "address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("address", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "address";	
}
$tdatacontacts[".globSearchFields"][] = "city_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("city_id", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "city_id";	
}
$tdatacontacts[".globSearchFields"][] = "port_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("port_id", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "port_id";	
}
$tdatacontacts[".globSearchFields"][] = "phone1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("phone1", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "phone1";	
}
$tdatacontacts[".globSearchFields"][] = "phone2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("phone2", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "phone2";	
}
$tdatacontacts[".globSearchFields"][] = "fax1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fax1", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "fax1";	
}
$tdatacontacts[".globSearchFields"][] = "fax2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fax2", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "fax2";	
}
$tdatacontacts[".globSearchFields"][] = "email";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("email", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "email";	
}
$tdatacontacts[".globSearchFields"][] = "website";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("website", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "website";	
}
$tdatacontacts[".globSearchFields"][] = "primary";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("primary", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "primary";	
}
$tdatacontacts[".globSearchFields"][] = "company_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("company_name", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "company_name";	
}
$tdatacontacts[".globSearchFields"][] = "pin_code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pin_code", $tdatacontacts[".allSearchFields"]))
{
	$tdatacontacts[".allSearchFields"][] = "pin_code";	
}


$tdatacontacts[".googleLikeFields"][] = "id";
$tdatacontacts[".googleLikeFields"][] = "company_id";
$tdatacontacts[".googleLikeFields"][] = "address";
$tdatacontacts[".googleLikeFields"][] = "city_id";
$tdatacontacts[".googleLikeFields"][] = "port_id";
$tdatacontacts[".googleLikeFields"][] = "phone1";
$tdatacontacts[".googleLikeFields"][] = "phone2";
$tdatacontacts[".googleLikeFields"][] = "fax1";
$tdatacontacts[".googleLikeFields"][] = "fax2";
$tdatacontacts[".googleLikeFields"][] = "email";
$tdatacontacts[".googleLikeFields"][] = "website";
$tdatacontacts[".googleLikeFields"][] = "primary";
$tdatacontacts[".googleLikeFields"][] = "company_name";
$tdatacontacts[".googleLikeFields"][] = "pin_code";



$tdatacontacts[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "id";	
}
$tdatacontacts[".advSearchFields"][] = "company_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("company_id", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "company_id";	
}
$tdatacontacts[".advSearchFields"][] = "address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("address", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "address";	
}
$tdatacontacts[".advSearchFields"][] = "city_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("city_id", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "city_id";	
}
$tdatacontacts[".advSearchFields"][] = "port_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("port_id", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "port_id";	
}
$tdatacontacts[".advSearchFields"][] = "phone1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("phone1", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "phone1";	
}
$tdatacontacts[".advSearchFields"][] = "phone2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("phone2", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "phone2";	
}
$tdatacontacts[".advSearchFields"][] = "fax1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fax1", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "fax1";	
}
$tdatacontacts[".advSearchFields"][] = "fax2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fax2", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "fax2";	
}
$tdatacontacts[".advSearchFields"][] = "email";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("email", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "email";	
}
$tdatacontacts[".advSearchFields"][] = "website";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("website", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "website";	
}
$tdatacontacts[".advSearchFields"][] = "primary";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("primary", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "primary";	
}
$tdatacontacts[".advSearchFields"][] = "company_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("company_name", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "company_name";	
}
$tdatacontacts[".advSearchFields"][] = "pin_code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pin_code", $tdatacontacts[".allSearchFields"])) 
{
	$tdatacontacts[".allSearchFields"][] = "pin_code";	
}

$tdatacontacts[".isTableType"] = "list";


	

$tdatacontacts[".isDisplayLoading"] = true;

$tdatacontacts[".isResizeColumns"] = true;





$tdatacontacts[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatacontacts[".strOrderBy"] = $gstrOrderBy;
	
$tdatacontacts[".orderindexes"] = array();

$tdatacontacts[".sqlHead"] = "SELECT id,   company_id,   address,   city_id,   port_id,   phone1,   phone2,   fax1,   fax2,   email,   website,   `primary`,   company_name,   pin_code";
$tdatacontacts[".sqlFrom"] = "FROM contacts";
$tdatacontacts[".sqlWhereExpr"] = "";
$tdatacontacts[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatacontacts[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatacontacts[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatacontacts[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["id"]=$fdata;
//	company_id
	$fdata = array();
	$fdata["strName"] = "company_id";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Company"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="company_name";
				$fdata["LookupTable"]="companies";
	$fdata["LookupOrderBy"]="company_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "company_id";
	
		$fdata["FullName"]= "company_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["company_id"]=$fdata;
//	address
	$fdata = array();
	$fdata["strName"] = "address";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "address";
	
		$fdata["FullName"]= "address";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 3;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=200";
		$fdata["nCols"] = 200;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["address"]=$fdata;
//	city_id
	$fdata = array();
	$fdata["strName"] = "city_id";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="City "; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="city_name";
				$fdata["LookupTable"]="cities";
	$fdata["LookupOrderBy"]="city_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "city_id";
	
		$fdata["FullName"]= "city_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 4;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["city_id"]=$fdata;
//	port_id
	$fdata = array();
	$fdata["strName"] = "port_id";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Port "; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="port_name";
				$fdata["LookupTable"]="ports";
	$fdata["LookupOrderBy"]="port_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "port_id";
	
		$fdata["FullName"]= "port_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 5;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["port_id"]=$fdata;
//	phone1
	$fdata = array();
	$fdata["strName"] = "phone1";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Phone 1"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "phone1";
	
		$fdata["FullName"]= "phone1";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=20";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["phone1"]=$fdata;
//	phone2
	$fdata = array();
	$fdata["strName"] = "phone2";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Phone 2"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "phone2";
	
		$fdata["FullName"]= "phone2";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=20";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["phone2"]=$fdata;
//	fax1
	$fdata = array();
	$fdata["strName"] = "fax1";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Fax 1"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "fax1";
	
		$fdata["FullName"]= "fax1";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=20";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["fax1"]=$fdata;
//	fax2
	$fdata = array();
	$fdata["strName"] = "fax2";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Fax 2"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "fax2";
	
		$fdata["FullName"]= "fax2";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=20";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["fax2"]=$fdata;
//	email
	$fdata = array();
	$fdata["strName"] = "email";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Email"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "email";
	
		$fdata["FullName"]= "email";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Email");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["email"]=$fdata;
//	website
	$fdata = array();
	$fdata["strName"] = "website";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Website"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "website";
	
		$fdata["FullName"]= "website";
	
		
		
		
		
		
				$fdata["Index"]= 11;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["website"]=$fdata;
//	primary
	$fdata = array();
	$fdata["strName"] = "primary";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Primary"; 
	
		
		
	$fdata["FieldType"]= 16;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Checkbox";
	$fdata["ViewFormat"]= "Checkbox";
	
		
		
		
		
		
	$fdata["GoodName"]= "primary";
	
		$fdata["FullName"]= "`primary`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 12;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["primary"]=$fdata;
//	company_name
	$fdata = array();
	$fdata["strName"] = "company_name";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Company Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "company_name";
	
		$fdata["FullName"]= "company_name";
	
		
		
		
		
		
				$fdata["Index"]= 13;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["company_name"]=$fdata;
//	pin_code
	$fdata = array();
	$fdata["strName"] = "pin_code";
	$fdata["ownerTable"] = "contacts";
		$fdata["Label"]="Pin Code"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "pin_code";
	
		$fdata["FullName"]= "pin_code";
	
		
		
		
		
		
				$fdata["Index"]= 14;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacontacts["pin_code"]=$fdata;

	
$tables_data["contacts"]=&$tdatacontacts;
$field_labels["contacts"] = &$fieldLabelscontacts;
$fieldToolTips["contacts"] = &$fieldToolTipscontacts;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["contacts"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["contacts"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto267=array();
$proto267["m_strHead"] = "SELECT";
$proto267["m_strFieldList"] = "id,   company_id,   address,   city_id,   port_id,   phone1,   phone2,   fax1,   fax2,   email,   website,   `primary`,   company_name,   pin_code";
$proto267["m_strFrom"] = "FROM contacts";
$proto267["m_strWhere"] = "";
$proto267["m_strOrderBy"] = "";
$proto267["m_strTail"] = "";
$proto268=array();
$proto268["m_sql"] = "";
$proto268["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto268["m_column"]=$obj;
$proto268["m_contained"] = array();
$proto268["m_strCase"] = "";
$proto268["m_havingmode"] = "0";
$proto268["m_inBrackets"] = "0";
$proto268["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto268);

$proto267["m_where"] = $obj;
$proto270=array();
$proto270["m_sql"] = "";
$proto270["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto270["m_column"]=$obj;
$proto270["m_contained"] = array();
$proto270["m_strCase"] = "";
$proto270["m_havingmode"] = "0";
$proto270["m_inBrackets"] = "0";
$proto270["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto270);

$proto267["m_having"] = $obj;
$proto267["m_fieldlist"] = array();
						$proto272=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "contacts"
));

$proto272["m_expr"]=$obj;
$proto272["m_alias"] = "";
$obj = new SQLFieldListItem($proto272);

$proto267["m_fieldlist"][]=$obj;
						$proto274=array();
			$obj = new SQLField(array(
	"m_strName" => "company_id",
	"m_strTable" => "contacts"
));

$proto274["m_expr"]=$obj;
$proto274["m_alias"] = "";
$obj = new SQLFieldListItem($proto274);

$proto267["m_fieldlist"][]=$obj;
						$proto276=array();
			$obj = new SQLField(array(
	"m_strName" => "address",
	"m_strTable" => "contacts"
));

$proto276["m_expr"]=$obj;
$proto276["m_alias"] = "";
$obj = new SQLFieldListItem($proto276);

$proto267["m_fieldlist"][]=$obj;
						$proto278=array();
			$obj = new SQLField(array(
	"m_strName" => "city_id",
	"m_strTable" => "contacts"
));

$proto278["m_expr"]=$obj;
$proto278["m_alias"] = "";
$obj = new SQLFieldListItem($proto278);

$proto267["m_fieldlist"][]=$obj;
						$proto280=array();
			$obj = new SQLField(array(
	"m_strName" => "port_id",
	"m_strTable" => "contacts"
));

$proto280["m_expr"]=$obj;
$proto280["m_alias"] = "";
$obj = new SQLFieldListItem($proto280);

$proto267["m_fieldlist"][]=$obj;
						$proto282=array();
			$obj = new SQLField(array(
	"m_strName" => "phone1",
	"m_strTable" => "contacts"
));

$proto282["m_expr"]=$obj;
$proto282["m_alias"] = "";
$obj = new SQLFieldListItem($proto282);

$proto267["m_fieldlist"][]=$obj;
						$proto284=array();
			$obj = new SQLField(array(
	"m_strName" => "phone2",
	"m_strTable" => "contacts"
));

$proto284["m_expr"]=$obj;
$proto284["m_alias"] = "";
$obj = new SQLFieldListItem($proto284);

$proto267["m_fieldlist"][]=$obj;
						$proto286=array();
			$obj = new SQLField(array(
	"m_strName" => "fax1",
	"m_strTable" => "contacts"
));

$proto286["m_expr"]=$obj;
$proto286["m_alias"] = "";
$obj = new SQLFieldListItem($proto286);

$proto267["m_fieldlist"][]=$obj;
						$proto288=array();
			$obj = new SQLField(array(
	"m_strName" => "fax2",
	"m_strTable" => "contacts"
));

$proto288["m_expr"]=$obj;
$proto288["m_alias"] = "";
$obj = new SQLFieldListItem($proto288);

$proto267["m_fieldlist"][]=$obj;
						$proto290=array();
			$obj = new SQLField(array(
	"m_strName" => "email",
	"m_strTable" => "contacts"
));

$proto290["m_expr"]=$obj;
$proto290["m_alias"] = "";
$obj = new SQLFieldListItem($proto290);

$proto267["m_fieldlist"][]=$obj;
						$proto292=array();
			$obj = new SQLField(array(
	"m_strName" => "website",
	"m_strTable" => "contacts"
));

$proto292["m_expr"]=$obj;
$proto292["m_alias"] = "";
$obj = new SQLFieldListItem($proto292);

$proto267["m_fieldlist"][]=$obj;
						$proto294=array();
			$obj = new SQLField(array(
	"m_strName" => "primary",
	"m_strTable" => "contacts"
));

$proto294["m_expr"]=$obj;
$proto294["m_alias"] = "";
$obj = new SQLFieldListItem($proto294);

$proto267["m_fieldlist"][]=$obj;
						$proto296=array();
			$obj = new SQLField(array(
	"m_strName" => "company_name",
	"m_strTable" => "contacts"
));

$proto296["m_expr"]=$obj;
$proto296["m_alias"] = "";
$obj = new SQLFieldListItem($proto296);

$proto267["m_fieldlist"][]=$obj;
						$proto298=array();
			$obj = new SQLField(array(
	"m_strName" => "pin_code",
	"m_strTable" => "contacts"
));

$proto298["m_expr"]=$obj;
$proto298["m_alias"] = "";
$obj = new SQLFieldListItem($proto298);

$proto267["m_fieldlist"][]=$obj;
$proto267["m_fromlist"] = array();
												$proto300=array();
$proto300["m_link"] = "SQLL_MAIN";
			$proto301=array();
$proto301["m_strName"] = "contacts";
$proto301["m_columns"] = array();
$proto301["m_columns"][] = "id";
$proto301["m_columns"][] = "company_id";
$proto301["m_columns"][] = "address";
$proto301["m_columns"][] = "city_id";
$proto301["m_columns"][] = "port_id";
$proto301["m_columns"][] = "phone1";
$proto301["m_columns"][] = "phone2";
$proto301["m_columns"][] = "fax1";
$proto301["m_columns"][] = "fax2";
$proto301["m_columns"][] = "email";
$proto301["m_columns"][] = "website";
$proto301["m_columns"][] = "primary";
$proto301["m_columns"][] = "company_name";
$proto301["m_columns"][] = "pin_code";
$obj = new SQLTable($proto301);

$proto300["m_table"] = $obj;
$proto300["m_alias"] = "";
$proto302=array();
$proto302["m_sql"] = "";
$proto302["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto302["m_column"]=$obj;
$proto302["m_contained"] = array();
$proto302["m_strCase"] = "";
$proto302["m_havingmode"] = "0";
$proto302["m_inBrackets"] = "0";
$proto302["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto302);

$proto300["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto300);

$proto267["m_fromlist"][]=$obj;
$proto267["m_groupby"] = array();
$proto267["m_orderby"] = array();
$obj = new SQLQuery($proto267);

$queryData_contacts = $obj;
$tdatacontacts[".sqlquery"] = $queryData_contacts;

$tableEvents["contacts"] = new eventsBase;

?>
